package problema012;

public class TriangularNumberDivisors {
	
	public static void main(String[] args){
		System.out.println(masDe500());
	}
	
	public static int masDe500(){
		int actual = 0, cant = 0;
		for(int i = 1; ; i++){
			actual += i;
			for(int div = 1; div <=actual; div++){
				if(actual % div == 0) cant++;
			}
			System.out.println(actual + " " + cant);
			if(cant >= 500) return actual;
			cant = 0;
		}
	}
	

}
